﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using FXnaWpfBase;

using GWApplication;

using FXnaAppBaseWpf;


namespace GWPresentation
{
    public class TvProjectViewModel : MDTVIViewModel
    {


       public TvProjectViewModel(MDTVIViewModel parent):base(parent)
       {

           this._project = ProjectService.CurrentService.Project;

           this.LoadChildren();


       }


       Project _project;


       public override string Desc
       {
           get
           {
               return "项目("+ProjectService.CurrentService.GetProjName()+")";
           }
       }



       protected override void LoadChildren()
       {
           base.LoadChildren();


           //通用数据，位图，矢量图等



           
           BitmapCollecionViewModel bitmap = new BitmapCollecionViewModel(this,this._project.CommonData.Images);

           this.Children.Add(bitmap);



           //按照地质数据


           TvGeologyVM geology = new TvGeologyVM(this);

           this.Children.Add(geology);



           //概念数据

           TvConceptualVM conceptual = new TvConceptualVM(this,this._project.ConceptualData);

           this.Children.Add(conceptual);


           //计算模型

           TvModelCollection model = new TvModelCollection(this);

           this.Children.Add(model);







       }



    }
}
